import request from '../index.js'

// 查询APP移动端订单
export const getMobileOrderList = params => {
  return request.get('/api/appletMobileOrder', params)
}

// 查询APPLET移动端订单明细
export const getMobileOrderDetail = params => {
  return request.get('/api/appletMobileOrderDetail', params)
}

//删除订单
export const removeOrder = data => {
  return request.post('/api/appletSalesOrder/removeAll', data)
}

//作废订单
export const invalid = data => {
  return request.post('/api/appletSalesOrder/invalid', data)
}

//获取小程序二维码
export const getQRCode = data => {
  return request.post('/api/wxPay/auth/getQRCode', data)
}

//删除销售单明细
export const removeSaleOrderDetail = data => {
  return request.post('/api/appletSalesOrder/remove', data)
}
